<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Quotation"/>

	<ui:define name="header">
		Sd Quotation
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdQuotationBean.id}">
				Edit existing Sd Quotation
			</c:when>
			<c:otherwise>
				Create a new Sd Quotation
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdQuotationBeanSdQuotationQtNo" value="Qt No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtNo" required="true" value="#{sdQuotationBean.sdQuotation.qtNo}"/>
					<h:message for="sdQuotationBeanSdQuotationQtNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationStatus" value="Sd Quotation Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdQuotationStatusBean.converter}" id="sdQuotationBeanSdQuotationSdQuotationStatus" value="#{sdQuotationBean.sdQuotation.sdQuotationStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdQuotationStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationSdQuotationStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSysTermOfPayment" value="Sys Term Of Payment:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="sdQuotationBeanSdQuotationSysTermOfPayment" value="#{sdQuotationBean.sdQuotation.sysTermOfPayment}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationSysTermOfPayment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdCust" value="Sd Cust:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdQuotationBeanSdQuotationSdCust" value="#{sdQuotationBean.sdQuotation.sdCust}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationSdCust" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationWfFlowTrans" value="Wf Flow Trans:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{wfFlowTransBean.converter}" id="sdQuotationBeanSdQuotationWfFlowTrans" value="#{sdQuotationBean.sdQuotation.wfFlowTrans}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{wfFlowTransBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationWfFlowTrans" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdCustType" value="Sd Cust Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustTypeBean.converter}" id="sdQuotationBeanSdQuotationSdCustType" value="#{sdQuotationBean.sdQuotation.sdCustType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationSdCustType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdQuotationBeanSdQuotationSysTitleName" value="#{sdQuotationBean.sdQuotation.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationBeanSdQuotationSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCode" value="Qt Code:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCode" maxLength="50" required="true" value="#{sdQuotationBean.sdQuotation.qtCode}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtDescr" value="Qt Descr:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtDescr" maxLength="100" required="true" value="#{sdQuotationBean.sdQuotation.qtDescr}"/>
					<h:message for="sdQuotationBeanSdQuotationQtDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtDate" value="Qt Date:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtDate" maxLength="10" required="true" value="#{sdQuotationBean.sdQuotation.qtDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sdQuotationBeanSdQuotationQtDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtRefCustPoNo" value="Qt Ref Cust Po No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtRefCustPoNo" maxLength="30" value="#{sdQuotationBean.sdQuotation.qtRefCustPoNo}"/>
					<h:message for="sdQuotationBeanSdQuotationQtRefCustPoNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCustCode" value="Qt Cust Code:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCustCode" maxLength="50" value="#{sdQuotationBean.sdQuotation.qtCustCode}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCustCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCustFirstName" value="Qt Cust First Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCustFirstName" maxLength="50" value="#{sdQuotationBean.sdQuotation.qtCustFirstName}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCustFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCustMidName" value="Qt Cust Mid Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCustMidName" maxLength="50" value="#{sdQuotationBean.sdQuotation.qtCustMidName}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCustMidName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCustLastName" value="Qt Cust Last Name:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCustLastName" maxLength="50" value="#{sdQuotationBean.sdQuotation.qtCustLastName}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCustLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtCustIdCardNo" value="Qt Cust Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtCustIdCardNo" maxLength="20" value="#{sdQuotationBean.sdQuotation.qtCustIdCardNo}"/>
					<h:message for="sdQuotationBeanSdQuotationQtCustIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtTermOfPaymentDescr" value="Qt Term Of Payment Descr:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtTermOfPaymentDescr" maxLength="300" value="#{sdQuotationBean.sdQuotation.qtTermOfPaymentDescr}"/>
					<h:message for="sdQuotationBeanSdQuotationQtTermOfPaymentDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountPerc" value="Qt Discount Perc:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtDiscountPerc" required="true" value="#{sdQuotationBean.sdQuotation.qtDiscountPerc}"/>
					<h:message for="sdQuotationBeanSdQuotationQtDiscountPerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountVal" value="Qt Discount Val:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtDiscountVal" required="true" value="#{sdQuotationBean.sdQuotation.qtDiscountVal}"/>
					<h:message for="sdQuotationBeanSdQuotationQtDiscountVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtDiscountTotal" value="Qt Discount Total:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtDiscountTotal" required="true" value="#{sdQuotationBean.sdQuotation.qtDiscountTotal}"/>
					<h:message for="sdQuotationBeanSdQuotationQtDiscountTotal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtStatusIncVat" value="Qt Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtStatusIncVat" required="true" value="#{sdQuotationBean.sdQuotation.qtStatusIncVat}"/>
					<h:message for="sdQuotationBeanSdQuotationQtStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtVatPercVal" value="Qt Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtVatPercVal" required="true" value="#{sdQuotationBean.sdQuotation.qtVatPercVal}"/>
					<h:message for="sdQuotationBeanSdQuotationQtVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalPriceExcVat" value="Qt Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtTotalPriceExcVat" required="true" value="#{sdQuotationBean.sdQuotation.qtTotalPriceExcVat}"/>
					<h:message for="sdQuotationBeanSdQuotationQtTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalVat" value="Qt Total Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtTotalVat" required="true" value="#{sdQuotationBean.sdQuotation.qtTotalVat}"/>
					<h:message for="sdQuotationBeanSdQuotationQtTotalVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationQtTotalPrice" value="Qt Total Price:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationBeanSdQuotationQtTotalPrice" required="true" value="#{sdQuotationBean.sdQuotation.qtTotalPrice}"/>
					<h:message for="sdQuotationBeanSdQuotationQtTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationItems" value="Sd Quotation Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdQuotationBean.sdQuotation.sdQuotationItems}"/>
					<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Qty"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtQty" value="#{_item.qtQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtQty" value="#{sdQuotationItemBean.add.qtQty}"/>
								<h:message for="sdQuotationItemBeanAddQtQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Ppu"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtPpu" value="#{_item.qtPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtPpu" value="#{sdQuotationItemBean.add.qtPpu}"/>
								<h:message for="sdQuotationItemBeanAddQtPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtStatusIncVat" value="#{_item.qtStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtStatusIncVat" value="#{sdQuotationItemBean.add.qtStatusIncVat}"/>
								<h:message for="sdQuotationItemBeanAddQtStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtVatPercVal" value="#{_item.qtVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtVatPercVal" value="#{sdQuotationItemBean.add.qtVatPercVal}"/>
								<h:message for="sdQuotationItemBeanAddQtVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Vat"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtVat" value="#{_item.qtVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtVat" value="#{sdQuotationItemBean.add.qtVat}"/>
								<h:message for="sdQuotationItemBeanAddQtVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationItemBean.added)}" id="sdQuotationBeanSdQuotationSdQuotationItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationItemBean.add.sdQuotation}" value="#{sdQuotationBean.sdQuotation}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdSaleOrders" value="Sd Sale Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdQuotationBean.sdQuotation.sdSaleOrders}"/>
					<h:dataTable id="sdQuotationBeanSdQuotationSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="So No"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoNo" value="#{sdSaleOrderBean.add.soNo}"/>
								<h:message for="sdSaleOrderBeanAddSoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Code"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoCode" maxLength="50" value="#{sdSaleOrderBean.add.soCode}"/>
								<h:message for="sdSaleOrderBeanAddSoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Descr"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDescr" maxLength="100" value="#{sdSaleOrderBean.add.soDescr}"/>
								<h:message for="sdSaleOrderBeanAddSoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Date"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDate" value="#{_item.soDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDate" maxLength="10" value="#{sdSaleOrderBean.add.soDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdSaleOrderBeanAddSoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDiscountPerc" value="#{sdSaleOrderBean.add.soDiscountPerc}"/>
								<h:message for="sdSaleOrderBeanAddSoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdSaleOrderBean.added)}" id="sdQuotationBeanSdQuotationSdSaleOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdSaleOrderBean.add.sdQuotation}" value="#{sdQuotationBean.sdQuotation}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationCustContacts" value="Sd Quotation Cust Contacts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdQuotationBean.sdQuotation.sdQuotationCustContacts}"/>
					<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationCustContacts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Title Name"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdQuotationCustContactBeanAddSysTitleName" value="#{sdQuotationCustContactBean.add.sysTitleName}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdQuotationCustContactBeanAddSysTitleName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Contact First Name"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustContactFirstName" value="#{_item.qtCustContactFirstName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustContactBeanAddQtCustContactFirstName" maxLength="50" value="#{sdQuotationCustContactBean.add.qtCustContactFirstName}"/>
								<h:message for="sdQuotationCustContactBeanAddQtCustContactFirstName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Contact Mid Name"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustContactMidName" value="#{_item.qtCustContactMidName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustContactBeanAddQtCustContactMidName" maxLength="50" value="#{sdQuotationCustContactBean.add.qtCustContactMidName}"/>
								<h:message for="sdQuotationCustContactBeanAddQtCustContactMidName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Contact Last Name"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustContactLastName" value="#{_item.qtCustContactLastName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustContactBeanAddQtCustContactLastName" maxLength="50" value="#{sdQuotationCustContactBean.add.qtCustContactLastName}"/>
								<h:message for="sdQuotationCustContactBeanAddQtCustContactLastName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Contact Phone No"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustContactPhoneNo" value="#{_item.qtCustContactPhoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustContactBeanAddQtCustContactPhoneNo" maxLength="20" value="#{sdQuotationCustContactBean.add.qtCustContactPhoneNo}"/>
								<h:message for="sdQuotationCustContactBeanAddQtCustContactPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationCustContactBean.added)}" id="sdQuotationBeanSdQuotationSdQuotationCustContactsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationCustContactBean.add.sdQuotation}" value="#{sdQuotationBean.sdQuotation}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationBeanSdQuotationSdQuotationCustAddrs" value="Sd Quotation Cust Addrs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdQuotationBean.sdQuotation.sdQuotationCustAddrs}"/>
					<h:dataTable id="sdQuotationBeanSdQuotationSdQuotationCustAddrs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr 01"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdQuotationCustAddrBeanAddSysAddr01" value="#{sdQuotationCustAddrBean.add.sysAddr01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdQuotationCustAddrBeanAddSysAddr01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr Type"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdQuotationCustAddrBeanAddSysAddrType" value="#{sdQuotationCustAddrBean.add.sysAddrType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdQuotationCustAddrBeanAddSysAddrType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Addr No"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustAddrNo" value="#{_item.qtCustAddrNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustAddrBeanAddQtCustAddrNo" maxLength="20" value="#{sdQuotationCustAddrBean.add.qtCustAddrNo}"/>
								<h:message for="sdQuotationCustAddrBeanAddQtCustAddrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Addr Moo"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustAddrMoo" value="#{_item.qtCustAddrMoo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustAddrBeanAddQtCustAddrMoo" maxLength="10" value="#{sdQuotationCustAddrBean.add.qtCustAddrMoo}"/>
								<h:message for="sdQuotationCustAddrBeanAddQtCustAddrMoo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Cust Addr Soi"/>
							</f:facet>
							<h:link outcome="/sdQuotationCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtCustAddrSoi" value="#{_item.qtCustAddrSoi}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationCustAddrBeanAddQtCustAddrSoi" maxLength="100" value="#{sdQuotationCustAddrBean.add.qtCustAddrSoi}"/>
								<h:message for="sdQuotationCustAddrBeanAddQtCustAddrSoi" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationCustAddrBean.added)}" id="sdQuotationBeanSdQuotationSdQuotationCustAddrsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationCustAddrBean.add.sdQuotation}" value="#{sdQuotationBean.sdQuotation}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdQuotationBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdQuotationBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdQuotationBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdQuotationBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>